home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-01-16 | 339 b | 11 lines | [TEXT/KAHL] |
- // When samples are 8 bits in size:
-
- #define GetSample8(x) ((signed char)(*(signed char *)(x) ^ 0x80))
- #define SetSample8(x, s) *(signed char *)(x) = (SignedByte)(s) ^ 0x80
-
-
- // When samples are 9 to 32 bits in size:
-
- signed long GetSample16(Ptr samplePtr, short bps);
- void SetSample16(Ptr samplePtr, signed long mySample, short bps);
-